package com.yw.thesimpllestplayer.util;

import android.content.Context;
import android.content.Intent;

/**
 * @ProjectName: TheSimpllestplayer
 * @Package: com.yw.thesimpllestplayer.util
 * @ClassName: ActivityUtil
 * @Description: Activity工具类
 * @Author: wei.yang
 * @CreateDate: 2021/11/3 10:12
 * @UpdateUser: 更新者：wei.yang
 * @UpdateDate: 2021/11/3 10:12
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class ActivityUtil {
    private ActivityUtil() {
    }

    private static ActivityUtil instance = null;

    public static ActivityUtil getInstance() {
        if (instance == null) {
            instance = new ActivityUtil();
        }
        return instance;
    }

    public void startActivity(Context context, String className) {
        Intent intent = new Intent();
        intent.setClassName(context, className);
        context.startActivity(intent);

    }

}
